// 订单表中应包含订单id，桌号，下单时间，订单总金额
import sequelize from 'sequelize'
const { DataTypes } = sequelize
import { dbInstance } from '../db/config'
export const order = dbInstance.define(
  'order',
  {
    id: {
      type: DataTypes.INTEGER,
      primaryKey: true,
      autoIncrement:true
    },
    payTime:{
      type:DataTypes.DATE,
      allowNull:false,
    },
    totalPrice:{
      type:DataTypes.FLOAT,
      allowNull:false
    }
  },
  {
    timestamps: false
  }
)